const { defineConfig } = require('@vue/cli-service');
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://192.168.124.9:8888', // 后端服务器地址
        changeOrigin: true, // 允许跨域
        pathRewrite: { '^/api': '' }, // 将 /api 替换为空
      },
    },
  },
});